package com.qdxwx.data.service.channel;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.channel.Channel;

import java.util.List;

/**
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
public interface ChannelService {

    int insert(Channel channel);

    int update(Channel channel);

    Channel get(int channelId);

    Channel getByDir(String channelDir);
    /**
     * 根据companyId获取频道列表，用于前台导航，不包括隐藏和禁用频道
     * 带缓存
     * @return
     */
    List<Channel> getMenus(int companyId);

    List<Channel> getMenusByModuleId(int moduleId);

    List<Channel> getList(Channel channel, PageRequest page);

    long count(Channel channel);

    int delete(int channelId);

    int updateDisabled(Channel channel);

}
